Re: [NTG-context] Grammar to parse TeX input?

2018-11-28 Thread Hans Hagen
[tolerant,stretch] \setupfirstline [alternative=line, color=darkred, style=\setfontfeature{smallcaps}] \setupfirstline [fancy] [n=3] \setupfirstline [fancier] [alternative=word, color=darkblue, style=bold, n=3] \setupfirstline [weirder] [alternative=line, color

Re: [NTG-context] Firstline problem with smallcaps

2018-01-14 Thread Hans Hagen
(emboldened, italicized). \definefirstline[SC][alternative=line,style=\setfontfeature{smallcaps}]% or =\sc \definefirstline[BD][alternative=line,style=bold] \definefirstline[IT][alternative=line,style=italic] \setupbodyfont[termes,11pt]% requires font with small caps

[NTG-context] Firstline problem with smallcaps

2018-01-12 Thread Rik Kabel
). \definefirstline[SC][alternative=line,style=\setfontfeature{smallcaps}]% or =\sc \definefirstline[BD][alternative=line,style=bold] \definefirstline[IT][alternative=line,style=italic] \setupbodyfont[termes,11pt]% requires font with small caps \starttext   \setfirstline[SC

[NTG-context] Problems with setfirstline

2017-10-18 Thread Rik Kabel
]  \Setupbodyfont{\setupbodyfont[#1,11pt]} \define[1] \DisplayExample{\switchtobodyfont[#1]\getbuffer} \setupfirstline [alternative=line, style=\setfontfeature{smallcaps}] \setupinitial   [location=text,n=2,color=darkred] \setuphead  [chapter

Re: [NTG-context] beta

2013-08-23 Thread Philipp Gesang
=\setfontfeature{smallcaps}] \setfirstline[fancy] \input tufte \par \setfirstline[fancy] \input ward \par \setfirstline[fancy] \input knuth \par \setfirstline[fancy] \input bryson \page \definefirstline [fancy] [alternative=word, color=darkblue

Re: [NTG-context] beta

2013-08-23 Thread Otared Kavian
few words) for instance in smallcaps. Another curiosity question: is it on purpose that \definefirstline [fancy] [alternative=line, color=darkred, style=\setfontfeature{smallcaps}, n=2] does not produce two lines of text in smallcaps? Best regards: OK On 22

Re: [NTG-context] beta

2013-08-23 Thread Hans Hagen
, color=darkred, style=\setfontfeature{smallcaps}] \setupfirstline [fancy] [n=3] \setupfirstline [fancier] [alternative=word, color=darkblue, style=bold, n=3] \setupfirstline [weirder] [alternative=line, color=darkgreen, style=\setfontfeature{smallcaps}, n=3

[NTG-context] beta

2013-08-22 Thread Hans Hagen
Hi, Some new magic in the beta ... \setupbodyfont[pagella] \starttext \setupindenting[medium,yes] \setupalign[tolerant] \definefirstline [fancy] [alternative=line, color=darkred, style=\setfontfeature{smallcaps}] \setfirstline[fancy] \input tufte

Re: [NTG-context] how to write two or three single hyphens?

2012-05-31 Thread Wolfgang Schuster
=myfeatures] Sometimes it is necessary to add additional features or to switch a different feature list *in* the document. To do this context provides the commands \addfontfeature and \setfontfeature which can be also called in the two shorter commands \addff and \setff. In the \definehighlight

Re: [NTG-context] how to write two or three single hyphens?

2012-05-31 Thread Jan Pohanka
\addfontfeature and \setfontfeature which can be also called in the two shorter commands \addff and \setff. In the \definehighlight command I enabled the predefined “none” list where ligatures and kerning is disabled to prevent that -- results in –. Wolfgang

Re: [NTG-context] \definetype and ligatures

2012-05-31 Thread Wolfgang Schuster
to \setfontfeature? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma

[NTG-context] Bug: footnote's textcommand overflows?

2011-04-24 Thread Oliver Buerschaper
-optical] \usetypescript [minion] \setupbodyfont [minion] \setupnote [footnote] [textcommand=\setfontfeature{superscripts}, textstyle=, numbercommand=] \starttext \dorecurse{9}{This\footnote{Hello World #1} is a test.\par } \stoptext --- The problem

[NTG-context] Capital spacing feature

2011-03-28 Thread Andreas Harder
Consider the following example \definefontfeature[capital spacing] [cpsp=yes] \definefontfeature[small capitals] [c2sc=yes] \starttext \setfontfeature{capital spacing} % not OK % \setfontfeature{small capitals} % OK ABCDEFGHIJKLMNOPQRSTUVWXYZ \stoptext It works okay with small capitals

Re: [NTG-context] Producing quotesingle glyph

2011-03-20 Thread Wolfgang Schuster
[default][liga=yes,kern=yes,tlig=yes,trep=yes,mode=node] You can add a feature with this: \definefontfeature[default][default][mode=node] \definefontfeature[notrep][liga=yes,kern=yes,tlig=yes,trep=no,mode=node] \def\realquotesingle{{\setfontfeature{notrep}'}} Another option is to disable only

Re: [NTG-context] Producing quotesingle glyph

2011-03-19 Thread Pontus Lurcock
] \definefontfeature[notrep][liga=yes,kern=yes,tlig=yes,trep=no,mode=node] \def\realquotesingle{{\setfontfeature{notrep}'}} \starttext Straight quote: \realquotesingle Standard quote: ' \stoptext Will wikify later today in case anyone else ever needs this. Pont

Re: [NTG-context] Compilation problem with latest beta

2011-02-20 Thread Wolfgang Schuster
Macros \def\orn{\setfontfeature{ornaments}} \def\itsw{\setfontfeature{swash}\it} \def\sw{\setfontfeature{swash}} \def\smcp{\setfontfeature{smallcaps}} \def\lnfigures{\setfontfeature{lining}} \def\tabfigures{\addfontfeaturetofont{tabular}} \def\lntabfigures{\setfontfeature{tabular}} Wolfgang

Re: [NTG-context] Compilation problem with latest beta

2011-02-20 Thread Michael Goerz
, the documents compiles. Change these defintions from \def to \unexpanded\def % Font Features Macros \def\orn{\setfontfeature{ornaments}} \def\itsw{\setfontfeature{swash}\it} \def\sw{\setfontfeature{swash}} \def\smcp{\setfontfeature{smallcaps}} \def\lnfigures{\setfontfeature{lining}} \def

[NTG-context] style=\setff{…} deprecated?

2011-01-21 Thread Andreas Harder
Hi all, I have some setups like: \setupfootnotes[textstyle=\plf] or \setupitemize[style=\plf] where \plf is defined as: \definefontfeature[plf][default] [pnum=yes,lnum=yes] \def\plf{\groupedcommand{\setfontfeature{plf}}{}} With the newest beta this setup fails. For footnotes one can use

Re: [NTG-context] style=\setff{…} deprecated?

2011-01-21 Thread Wolfgang Schuster
Am 21.01.2011 um 11:38 schrieb Andreas Harder: Hi all, I have some setups like: \setupfootnotes[textstyle=\plf] or \setupitemize[style=\plf] where \plf is defined as: \definefontfeature[plf][default] [pnum=yes,lnum=yes] \def\plf{\groupedcommand{\setfontfeature{plf

Re: [NTG-context] style=\setff{…} deprecated?

2011-01-21 Thread Andreas Harder
Am 21.01.2011 um 14:48 schrieb Wolfgang Schuster: \definefontfeature[default] [default] [mode=node,onum=yes] \definefontfeature[plf] [default] [pnum=yes,lnum=yes] \definefontfeature[tlf] [default] [tnum=yes,lnum=yes] \def\plf{\groupedcommand{\setfontfeature{plf}}{}} \def\tlf

[NTG-context] \setfontfeature-problem

2010-10-13 Thread Andreas Harder
Hi all, please have a look at my example: \definefontfeature[default][default][mode=node,onum=yes] \definefontfeature[sc][default][smcp=yes] \def\sc{\groupedcommand{\setfontfeature{sc}}{}} \setupbodyfont[palatino] \starttext \startTEXpage[offset=1ex] {\sc Abc} 0369 \crlf \sc{Abc} 0369

Re: [NTG-context] \setfontfeature-problem

2010-10-13 Thread Michael Murphy
On 13/10/10 12:48, Andreas Harder wrote: Hi all, please have a look at my example: \definefontfeature[default][default][mode=node,onum=yes] \definefontfeature[sc][default][smcp=yes] \def\sc{\groupedcommand{\setfontfeature{sc}}{}} \setupbodyfont[palatino] \starttext \startTEXpage[offset=1ex

Re: [NTG-context] \setfontfeature-problem

2010-10-13 Thread Hans Hagen
On 13-10-2010 12:48, Andreas Harder wrote: It seems that if a line starts with \sc{…} the onum-option is ignored. Is there a solution? fixed in upcoming beta - Hans Hagen | PRAGMA ADE

Re: [NTG-context] \setfontfeature-problem

2010-10-13 Thread Andreas Harder
Am 13.10.2010 um 14:40 schrieb Hans Hagen: On 13-10-2010 12:48, Andreas Harder wrote: It seems that if a line starts with \sc{…} the onum-option is ignored. Is there a solution? fixed in upcoming beta Thanks Hans! Andreas

Re: [NTG-context] Ligaturing in footnotes.

2010-04-18 Thread Wolfgang Schuster
in exactly this particular context. A nice trick i found in the core (typo-cap.mkiv) \def\sc{\setfontfeature{smallcaps}} % \addff{smallcaps}? \definefontfeature [default] [default] [mode=node,onum=yes] \definefontfeature [smallcaps] [default] [smcp=yes] \setupenumerations[footnote][before=\char\zerocount

[NTG-context] Ligaturing in footnotes.

2010-04-17 Thread Philipp Gesang
Hi again, footnotes keep me busy: ···8·· \def\sc{\setfontfeature{smallcaps}} \definefontfeature [default][default] [mode=node,onum=yes,liga=yes] \definefontfeature [smallcaps][default] [mode=node,onum=yes,smcp

Re: [NTG-context] ntg-context Digest, Vol 69, Issue 95

2010-03-18 Thread Hans Hagen
\subtractfontfeaturefromset {..} % merge \addfontfeaturetofont {..} % overload \subtractfontfeaturefromfont{..} % overload \let\addfs\addfontfeaturetoset \let\subfs\subtractfontfeaturefromset \let\addff\addfontfeaturetofont \let\subff\subtractfontfeaturefromfont there's also \setfontfeature

Re: [NTG-context] typescript

2010-03-15 Thread Philipp Gesang
[SerifBold] [name:GaramondPremrPro-Smbd] [features=default] \definefontsynonym [SerifBoldItalic] [name:GaramondPremrPro-SmbdIt] [features=default] \stoptypescript \def\sc{\setfontfeature{smallcaps}} \def\os{\setfontfeature{oldstyle}} \definefontfeature [default][default

Re: [NTG-context] Working with Arabic

2010-03-08 Thread Wolfgang Schuster
][color=blue] \starttext {\setfontfeature[blue]Blue text} gives the same result as \color[blue]{blue text} \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki

Re: [NTG-context] Another small caps problem with some fonts (and old-style figures)

2009-09-24 Thread Mika Ritola
line should disable ligatures in small caps altogether. \definefontfeature[smallcaps][smallcaps][liga=no] Did it work with this redefinition of the smallcaps feature? \definefontfeature[smallcaps][smallcaps][mode=node] With \setfontfeature{oldstyle}, I don't seem to get any small caps

Re: [NTG-context] Another small caps problem with some fonts (and old-style figures)

2009-09-24 Thread Mika Ritola
about these things), and also because the second line should disable ligatures in small caps altogether. \definefontfeature[smallcaps][smallcaps][liga=no] Did it work with this redefinition of the smallcaps feature? \definefontfeature[smallcaps][smallcaps][mode=node] With \setfontfeature

Re: [NTG-context] Another small caps problem with some fonts (and old-style figures)

2009-09-24 Thread Hans Hagen
Mika Ritola wrote: I have to reply to my own mail because I just updated simplefonts and noticed that the latest version behaves a bit differently. The [oldstylefigures=yes] option still works perfectly, but now both \setfontfeature{oldstyle} and \addfontfeaturetoset{oldstyle} result in small

Re: [NTG-context] Another small caps problem with some fonts (and old-style figures)

2009-09-24 Thread Wolfgang Schuster
Am 24.09.2009 um 14:24 schrieb Hans Hagen: Mika Ritola wrote: I have to reply to my own mail because I just updated simplefonts and noticed that the latest version behaves a bit differently. The [oldstylefigures=yes] option still works perfectly, but now both \setfontfeature{oldstyle

Re: [NTG-context] Another small caps problem with some fonts (and old-style figures)

2009-09-24 Thread the.thin.air
still works perfectly, but now both \setfontfeature{oldstyle} and \addfontfeaturetoset{oldstyle} result in small caps not working at all. that's for Wolfgang to sort out then (that is: the interaction betweem his settings and dynamic features) there is one method to get oldstyle figures

Re: [NTG-context] Another small caps problem with some fonts (and old-style figures)

2009-09-23 Thread Mika Ritola
. \definefontfeature[smallcaps][smallcaps][liga=no] Did it work with this redefinition of the smallcaps feature? \definefontfeature[smallcaps][smallcaps][mode=node] With \setfontfeature{oldstyle}, I don't seem to get any small caps at all in node mode. If I replace it with the line that you

Re: [NTG-context] Another small caps problem with some fonts (and old-style figures)

2009-09-23 Thread Hans Hagen
altogether. \definefontfeature[smallcaps][smallcaps][liga=no] Did it work with this redefinition of the smallcaps feature? \definefontfeature[smallcaps][smallcaps][mode=node] With \setfontfeature{oldstyle}, I don't seem to get any small caps at all in node mode. If I replace it with the line

[NTG-context] Another small caps problem with some fonts (and old-style figures)

2009-09-22 Thread Mika Ritola
old-style figures should affect ligatures at all (not that I know anything about these things), and also because the second line should disable ligatures in small caps altogether. \usemodule[simplefonts] \definefontfeature[smallcaps][smallcaps][liga=no] \setfontfeature{oldstyle} \setmainfont[Adobe

Re: [NTG-context] Another small caps problem with some fonts (and old-style figures)

2009-09-22 Thread Wolfgang Schuster
it work with this redefinition of the smallcaps feature? \definefontfeature[smallcaps][smallcaps][mode=node] \setfontfeature{oldstyle} \setmainfont[Adobe Jenson Pro] \setmainfont[Adobe Jenson Pro][oldstylefigures=yes] Wolfgang

Re: [NTG-context] 1/2 symbol

2009-03-04 Thread Wolfgang Schuster
? Another way is to use the 'frac' feature. \definefontfeature[frac][default][script=latn,frac=yes] \definefont[minion][name:minionproregular*default] \def\utffrac{\groupedcommand{\setfontfeature{frac}}{}} \starttext \minion 1/2 \utffrac{1/2} 1/2 \utffrac{12345/6789} 12345/6789 \stoptext

Re: [NTG-context] Please fix this

2009-01-29 Thread Yue Wang
][AdobeSongStd-Light][features=zh] \definefont[ChineseFont][zhserif at 12pt] however, in experimental version, it will report zhserif not found. So I can only write something like: \definefont[ChineseFont][AdobeSongStd-Light*zh at 12pt] Bug or feature? btw, I can use setfontfeature, how can I unset a font

[NTG-context] Problem with fonts

2008-12-08 Thread Mohamed Bana
a... ? %%% test.tex %%% % engine=luatex \enableregime [utf-8] \def\sc{\setfontfeature{smallcaps}} \definefontfeature [default][default] [protrusion=quality,expansion=quality,mode=node,script=latn] \definefontfeature [oldstyle][default] [protrusion=quality,expansion=quality,mode=node

Re: [NTG-context] How to use Minion Pro

2008-12-02 Thread Mohamed Bana
=latin-smallcaps] \stoptypescript %%% Then i've got this in the file i want to typeset %%% \def\sc{\setfontfeature{smallcaps}} \definefontfeature [default][default] [protrusion=quality,expansion=quality,mode=node,script=latn] \definefontfeature [oldstyle][default] [protrusion

Re: [NTG-context] font style, font case question

2008-11-23 Thread luigi scarso
On Sun, Nov 23, 2008 at 7:12 AM, Yue Wang [EMAIL PROTECTED] wrote: Hi, 3. In a many OpenType fonts you could get small caps with the smcp feature, to use it redefine the \sc command to \def\sc{\groupedcommand{\setfontfeature{smallcaps}}{}}. I can enable a feature using

Re: [NTG-context] font style, font case question

2008-11-22 Thread Wolfgang Schuster
caps with the smcp feature, to use it redefine the \sc command to \def\sc{\groupedcommand{\setfontfeature{smallcaps}}{}}. Wolfgang ___ If your question is of interest to others as well, please add an entry

Re: [NTG-context] font style, font case question

2008-11-22 Thread Yue Wang
Hi, 3. In a many OpenType fonts you could get small caps with the smcp feature, to use it redefine the \sc command to \def\sc{\groupedcommand{\setfontfeature{smallcaps}}{}}. I can enable a feature using the \setfontfeature, how can I disable a feature? like \setfontfeature{-smcp}? btw

Re: [NTG-context] Some questions about TeX Gyre support in minimals

2008-10-23 Thread Wolfgang Schuster
in any font (gyre fonts doesn't have that yet?) \usetypescript[palatino] \setupbodyfont[palatino] \def\os{\groupedcommand{\setfontfeature{oldstyle}}{}} \starttext 0123456789 {\os 0123456789} \stoptext Test the other fonts by yourself. 2. adventor have italic but slanted displays as normal

Re: [NTG-context] Some questions about TeX Gyre support in minimals

2008-10-23 Thread Aditya Mahajan
of problems I've encountered: 1. No small-caps in any font (gyre fonts doesn't have that yet?) \usetypescript[palatino] \setupbodyfont[palatino] \def\os{\groupedcommand{\setfontfeature{oldstyle}}{}} Shouldn't that be just \def\os{\setufontfeature{oldstyle}} Aditya \starttext 0123456789 {\os

Re: [NTG-context] Some questions about TeX Gyre support in minimals

2008-10-23 Thread Wolfgang Schuster
TeX Gyre fonts work with as few definitions as possible. Here is the list of problems I've encountered: 1. No small-caps in any font (gyre fonts doesn't have that yet?) \usetypescript[palatino] \setupbodyfont[palatino] \def\os{\groupedcommand{\setfontfeature{oldstyle}}{}} Shouldn't

Re: [NTG-context] Some questions about TeX Gyre support in minimals

2008-10-23 Thread Hans Hagen
as possible. Here is the list of problems I've encountered: 1. No small-caps in any font (gyre fonts doesn't have that yet?) \usetypescript[palatino] \setupbodyfont[palatino] \def\os{\groupedcommand{\setfontfeature{oldstyle}}{}} Shouldn't that be just \def\os{\setufontfeature{oldstyle

Re: [NTG-context] XeTeX old style numerals

2008-10-11 Thread Mohamed Bana
\os to something \def\os{\groupedcommand{\setfontfeature{oldstyle}}{}} which in mkiv will make 1234567890 {\os 1234567890} 1234567890 work ___ If your question is of interest to others as well, please add

Re: [NTG-context] Last beta and CJK

2008-10-01 Thread Hans Hagen
Wolfgang Schuster wrote: Am 01.10.2008 um 00:08 schrieb Hans Hagen: Wolfgang Schuster wrote: Hi Hans, Japanese text is no longer broken across lines, it works only if I set the right feature with \setfontfeature but settings given with feature=... in \definefontsynonym are ignored. ok

Re: [NTG-context] Last beta and CJK

2008-10-01 Thread Wolfgang Schuster
Am 01.10.2008 um 11:22 schrieb Hans Hagen: Wolfgang Schuster wrote: Am 01.10.2008 um 00:08 schrieb Hans Hagen: Wolfgang Schuster wrote: Hi Hans, Japanese text is no longer broken across lines, it works only if I set the right feature with \setfontfeature but settings given with feature

Re: [NTG-context] XeTeX old style numerals

2008-09-20 Thread Hans Hagen
is kind of special because it's related to the fact that good old tex and the cm fonts have oldstyles in some math font and therefore some effort is needed to use it in text we might consider mapping \os to something \def\os{\groupedcommand{\setfontfeature{oldstyle}}{}} which in mkiv will make

[NTG-context] Interesting Bug with LuaTex, \setfontfeature{oldstyle}, colors and tikz

2008-09-17 Thread holzminister
, cap=round] (-7.65cm,-1mm) -- (7.65cm,-1mm); \stoptikzpicture \stoptext When I compile my document with texexec --lua I get a black line. Adding \setfontfeature{oldstyle} to the preamble causes texexec --lua to break with a failure. Package pgfbase: Error! Unsupported color model `'. Sorry

Re: [NTG-context] One very silly question

2008-09-12 Thread Wolfgang Schuster
even adapt features in between if needed (dynamic features) How to use dynamic features? it is not documented in co-typography and co-fonts. is there such interface like: \definefeature[onum][onum=yes] \definefeature[smcp][smcp=yes] \def\onum{\setfontfeature{onum}} {\rm\bf\onum\smcp Hello

[NTG-context] oldstyle numbers and copy pasting from pdf

2008-07-28 Thread Aditya Mahajan
Hi, I cannot copy oldstyle numbers from a pdf. Consider \usetypescript[palatino] \setupbodyfont[palatin,12pt] \setfontfeature{oldstyle} \starttext 12345 \stoptext When I copy from pdf (or run pdftotext) I get   How do I correct

Re: [NTG-context] bib module and hypehnation

2008-07-28 Thread Aditya Mahajan
] [delicious] [default] [features=default, rscale=1.1] \definetypeface [mainface] [tt] [mono] [modern] [default] [features=default, rscale=1.1] \definetypeface [mainface] [mm] [math] [palatino] [default] [encoding=texnansi] \setupbodyfont[mainface,12pt] \setfontfeature{oldstyle} \setuppapersize [letter

Re: [NTG-context] OpenType beginners question

2008-07-21 Thread Aditya Mahajan
\def\sc{\setfontfeature{smallcaps}} Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage

[NTG-context] Palatino, smallcaps, and oldstyle.

2008-07-19 Thread Aditya Mahajan
Hi, Something is wrong with palatino smallcaps and oldstyle. The attached image shows the output of the following test file. \usetypescript[palatino] \setupbodyfont[palatino] \setfontfeature{oldstyle} \starttext Definition \smallcaps{Definition} \stoptext Adityaattachment

[NTG-context] Using fontfeatures ...

2008-07-16 Thread Willi Egger
=dflt,liga=yes,onum=yes,kern=yes] \usetypescriptfile[seravek] \usetypescript[Seravek] \setupbodyfont[Seravek,12pt] % \def\sc{\setfontfeature{smcp}} % \def\os{\setfontfeature{onum}} \starttext Hello World! {\sc ABC abc} {\os 123} 1 2 3 4 5 6 7 8 9 \blank {\sc Hello World!} \blank {\bf Hello World

Re: [NTG-context] Using fontfeatures ...

2008-07-16 Thread Wolfgang Schuster
,script=latn,language=dflt,liga=yes,onum=yes,kern=yes] \usetypescriptfile[seravek] \usetypescript[Seravek] \setupbodyfont[Seravek,12pt] % \def\sc{\setfontfeature{smcp}} % \def\os{\setfontfeature{onum}} \def\sc{\setfontfeature{smallcaps}} \def\os{\setfontfeature{oldstyle}} or \def\sc

Re: [NTG-context] Using fontfeatures ...

2008-07-16 Thread Willi Egger
[seravek] \usetypescript[Seravek] \setupbodyfont[Seravek,12pt] % \def\sc{\setfontfeature{smcp}} % \def\os{\setfontfeature{onum}} \def\sc{\setfontfeature{smallcaps}} \def\os{\setfontfeature{oldstyle}} or \def\sc{\setfontfeature{smallcaps}} \def\os{\setfontfeature{OldstyleFigures

Re: [NTG-context] Vista fonts

2008-07-13 Thread Wolfgang Schuster
] \definetypeface [constantia] [ss] [sans] [candara] [default] \setupbodyfont[constantia,11pt] This is my test file: \usetypefile [vista] \usetypescript[candara] \setupbodyfont[candara] \def\sc{\setfontfeature{latin-smallcaps}} \def\os{\setfontfeature{latin-oldstyle}} \starttext \ss Text Va ffi ffi

Re: [NTG-context] oldstyle features and typing

2008-05-17 Thread Hans Hagen
Aditya Mahajan wrote: Hi, While using oldstyle features with mkiv, -- in a typing environment comes out as a endash. I would consider this a bug. For example: \setfontfeature{oldstyle} \starttext \starttyping -- A comment 123 \stoptyping \stoptext Another interesting feature

[NTG-context] oldstyle features and typing

2008-05-15 Thread Aditya Mahajan
Hi, While using oldstyle features with mkiv, -- in a typing environment comes out as a endash. I would consider this a bug. For example: \setfontfeature{oldstyle} \starttext \starttyping -- A comment 123 \stoptyping \stoptext Another interesting feature is that numbers in the typing

Re: [NTG-context] Font features not always working

2008-04-30 Thread Wolfgang Schuster
things like this using \setfontfeature or something similar. Hans will know for sure (but he at bachotex right now) I wrote a simpler example and compiled it with my old and my current ConTeXt. http://schuster.wolfgang.googlepages.com/files - Fontfeature Greetings Wolfgang

Re: [NTG-context] Font features not always working

2008-04-29 Thread Taco Hoekwater
stable online. http://schuster.wolfgang.googlepages.com/files IIRC, \Var depends on a very particular way of writing typescripts, and is currently considered deprecated by Hans, and that there is a new way to do things like this using \setfontfeature or something similar. Hans will know for sure

Re: [NTG-context] Font features not always working

2008-04-29 Thread Wolfgang Schuster
things like this using \setfontfeature or something similar. Hans will know for sure (but he at bachotex right now) This did also happen with [feature=...] in typescripts or with \setfontfeature in a document. A few fonts like Pagella or Linux Libertine work as expected but Cambria is a example where

Re: [NTG-context] small caps and old numbers with open type fonts

2008-04-16 Thread Wolfgang Schuster
- oldstyle It is also possible to change the features of a font within the text with the command \setfontfeature{...}. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki

Re: [NTG-context] small caps and old numbers with open type fonts

2008-04-16 Thread Antoine Junod
trying to do right now. ConTeXt has the following features predefined: - default - smallcaps - oldstyle Yep, I saw them in font-ini.tex, as you pointed me to. It is also possible to change the features of a font within the text with the command \setfontfeature{...}. But, if I've understood

Re: [NTG-context] small caps and old numbers with open type fonts

2008-04-16 Thread Wolfgang Schuster
font features with \definefontfeature It is also possible to change the features of a font within the text with the command \setfontfeature{...}. But, if I've understood the point, there is no reason to do that if I use a proper typescript. Right? It depends what do you want, normally

Re: [NTG-context] old-style numerals and .

2008-02-22 Thread Idris Samawi Hamid
== % engine=luatex \definefontfeature [oldstyle] [mode=node,language=dflt,script=latn,onum=yes,tnum=yes] \setfontfeature{oldstyle} \starttext 1234567890 \stoptext == Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief

Re: [NTG-context] bug in \setfontfeature

2008-01-02 Thread Wolfgang Schuster
] \setfontfeature{oldstyle} \starttext 1234567890 \startitemize \item test \stopitemize \stoptext == log: error: ...onTeXt/tex/texmf-local/tex/context/base/font-otf.lua:1890: attempt to index local 'shared' (a nil value) . \dolistitem

Re: [NTG-context] bug in \setfontfeature

2008-01-02 Thread Hans Hagen
,tnum=yes] \setfontfeature{oldstyle} \starttext 1234567890 \startitemize \item test \stopitemize \stoptext == in font=otf.lua, patch ... function fonts.otf.set_dynamics(tfmdata,attribute,features) local shared = tfmdata.shared

Re: [NTG-context] old style nums

2008-01-02 Thread Wolfgang Schuster
want to achieve, local changes can be done with \os, but this will use numbers from the math font. That's exactly why \os is almost useless (it messes up itemizations and other stuff); better to \switchtotypeface, even for local changes. option two is to write \setfontfeature{oldstyle

Re: [NTG-context] bug in \setfontfeature

2008-01-02 Thread Wolfgang Schuster
\definefontfeature [oldstyle] [mode=node,language=dflt,script=latn,onum=yes,tnum=yes] \setfontfeature{oldstyle} \starttext 1234567890 \startitemize \item test \stopitemize \stoptext == in font=otf.lua, patch ... function

Re: [NTG-context] bug in \setfontfeature

2008-01-02 Thread Hans Hagen
Wolfgang Schuster wrote: you forgot local dynamics, the following works function fonts.otf.set_dynamics(tfmdata,attribute,features) local shared = tfmdata.shared local dynamics = shared.dynamics if shared then hm, you need to to test shared before using it, so

Re: [NTG-context] old style nums

2008-01-02 Thread Idris Samawi Hamid
not ;-) == % engine=luatex \setfontfeature{oldstyle} \starttext test 1234567890 \stoptext == There is currently no better way to enable oldstyle number for the whole document except you define your own typescripts and use

Re: [NTG-context] bug in \setfontfeature

2008-01-02 Thread Idris Samawi Hamid
On Wed, 02 Jan 2008 02:11:22 -0700, Hans Hagen [EMAIL PROTECTED] wrote: in font=otf.lua, patch ... function fonts.otf.set_dynamics(tfmdata,attribute,features) local shared = tfmdata.shared if shared then end end and remake Does this handle the other

Re: [NTG-context] bug in \setfontfeature

2008-01-02 Thread Idris Samawi Hamid
On Wed, 02 Jan 2008 08:14:17 -0700, Taco Hoekwater [EMAIL PROTECTED] wrote: Does this handle the other [off-list] utf-8 bug that generates an error message from font-tfm.lua:591? No. You get that error because the font does not have a non-breaking hyphen, and you can fix it by changing

Re: [NTG-context] old style nums

2008-01-01 Thread Wolfgang Schuster
the math font. Mark IV has a new the new option fontfeatures and you can use this to get the oldstyle numbers from the latin modern OT fonts. Option one is to redefine \os to use the numbers from the main font, you have to put the following command in your document, \def\os{\setfontfeature{oldstyle

Re: [NTG-context] bug in \setfontfeature

2008-01-01 Thread luigi scarso
On Jan 2, 2008 4:19 AM, Idris Samawi Hamid [EMAIL PROTECTED] wrote: Dear consortium, check this out: == % engine=luatex \definefontfeature [oldstyle] [mode=node,language=dflt,script=latn,onum=yes,tnum=yes] \setfontfeature{oldstyle

Re: [NTG-context] showfont with xetex (syntax changed?)

2007-12-10 Thread Hans Hagen
be considered as a theoretical possibility, it is needed quite often. Steffen The following should work, can't test it at the moment \definefontfeature[enableoldstyle][onum=yes] \definefontfeature[disableoldstyle][onum=no] \starttext 123 \setfontfeature{enableoldstyle} 456 \setfontfeature

Re: [NTG-context] showfont with xetex (syntax changed?)

2007-12-10 Thread Wolfgang Schuster
=no] \starttext 123 \setfontfeature{enableoldstyle} 456 \setfontfeature{disableoldstyle} 789 \stoptext btw, these are attributes and therefore can be used grouped 123 {\setfontfeature{enableoldstyle} 456} 789 Is it also possible to inherit the values from the previuos change, e.g. I

Re: [NTG-context] showfont with xetex (syntax changed?)

2007-12-06 Thread Wolfgang Schuster
the fonfeatures define in the typescript \setupbodyfont[myfont][features=oldstyle] choose oldstyle figures instead of the default setting in the typescript, this requires at the moment always a second typescript with oldstyle numerals. It would also nice to map \sc to \setfontfeature{smallcaps} because

Re: [NTG-context] showfont with xetex (syntax changed?)

2007-12-06 Thread Wolfgang Schuster
it at the moment \definefontfeature[enableoldstyle][onum=yes] \definefontfeature[disableoldstyle][onum=no] \starttext 123 \setfontfeature{enableoldstyle} 456 \setfontfeature{disableoldstyle} 789 \stoptext Wolfgang

Re: [NTG-context] showfont with xetex (syntax changed?)

2007-12-06 Thread Steffen Wolfrum
. Steffen The following should work, can't test it at the moment \definefontfeature[enableoldstyle][onum=yes] \definefontfeature[disableoldstyle][onum=no] \starttext 123 \setfontfeature{enableoldstyle} 456 \setfontfeature {disableoldstyle} 789 \stoptext you mean typeset with Lua

Re: [NTG-context] showfont with xetex (syntax changed?)

2007-12-06 Thread Wolfgang Schuster
be considered as a theoretical possibility, it is needed quite often. Steffen The following should work, can't test it at the moment \definefontfeature[enableoldstyle][onum=yes] \definefontfeature[disableoldstyle][onum=no] \starttext 123 \setfontfeature{enableoldstyle} 456

Re: [NTG-context] showfont with xetex (syntax changed?)

2007-12-06 Thread Hans Hagen
something like that ... keep in mind that you don't need to define a font then, {\setfontfeature{smallcaps}Some Text} will automatically give you that featureset so in practice we can do with only a few real font definitions; mkiv keeps track of such dunamic features and efficiently caches data; we

Re: [NTG-context] showfont with xetex (syntax changed?)

2007-12-06 Thread Hans Hagen
be considered as a theoretical possibility, it is needed quite often. Steffen The following should work, can't test it at the moment \definefontfeature[enableoldstyle][onum=yes] \definefontfeature[disableoldstyle][onum=no] \starttext 123 \setfontfeature{enableoldstyle} 456 \setfontfeature

Re: [NTG-context] showfont with xetex (syntax changed?)

2007-12-06 Thread Steffen Wolfrum
Am 06.12.2007 um 18:55 schrieb Hans Hagen: something like that ... keep in mind that you don't need to define a font then, {\setfontfeature{smallcaps}Some Text} will automatically give you that featureset so in practice we can do with only a few real font definitions; mkiv keeps track

Re: [NTG-context] showfont with xetex (syntax changed?)

2007-12-06 Thread Hans Hagen
Steffen Wolfrum wrote: Am 06.12.2007 um 18:55 schrieb Hans Hagen: something like that ... keep in mind that you don't need to define a font then, {\setfontfeature{smallcaps}Some Text} will automatically give you that featureset so in practice we can do with only a few real font

Re: [NTG-context] Font sizes using Chinese module

2007-11-07 Thread Hans Hagen
{\setfontfeature{chinese} MORE BLA} bla bla {\setfontfeature{oldstyle} 1234} bla bla \stoptext so, just one font instance and independent feature switches; this saves multiple definitions of fonts and is therefore faster and takes less memory too Hans